<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var dog = {
            dName: ' 可可 ', //特征和对象信息
            type: ' 阿拉斯加犬 ',
            age: ' 5 岁 ',
            color: ' 棕红色 ',
            call: function() {
                console.log(' 汪汪叫 '); //行为
            },
            tail: function() {
                console.log(' 摇尾巴 ');
            }
        };
        console.log(dog.dName);
        console.log(dog.type);
        console.log(dog.age);
        console.log(dog.color);
        dog.call();
        dog.tail();
    </script>
</body>

</html>